/*
 * @Author: zwz
 * @Date: 2023-05-25 10:44:26
 * @LastEditors: zwz
 * @LastEditTime: 2023-06-06 11:20:07
 * @Description: 路由
 */
'use strict';

// const { jwt } = require("../config/plugin");

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    //   const counter = app.middleware.counter();
    const { router, controller,jwt, middleware } = app;
    const authMiddleware = middleware.auth();
    // 校验登录加上authMiddleware
     // 登录
     router.get('/fund/login',controller.login.index)
     // 注册接口
     router.post('/fund/signIn',controller.signIn.index)
};
